<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>API客户端</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="1261416472">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/admin/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/admin/js/jquery-1.7.1.min.js"></script>
	
	<script type="text/javascript" src="/admin/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/admin//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<script type="text/javascript" src="/admin/js/jquery-ui-1.10.2.custom.min.js"></script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/admin/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/admin/css/define.css"/>
	<!-- icon font -->
  	<link rel="stylesheet" href="/admin/css/iconfont.css">
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "1261416472";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/admin/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/admin/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("apiclient.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		document.title={
  			 "insert":"创建API客户端"
  			,"inport":"导入API客户端"
  			,"update":"修改API客户端"
  			,"detail":"API客户端详情"
  		}[options.edittype];
  		THIS.setData(protocol.data); 
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>
<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		 
	$("#apiclientForm").form({
		"":function(){}
		,"srvApiClient.sacId":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"srvApiClient.sacClient":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "客户端ID不能为空";
			}
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "客户端ID最大长度为32个字符";
		}
		,"srvApiClient.sacSecret":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "客户密钥不能为空";
			}
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "客户密钥最大长度为32个字符";
		}
		,"srvApiClient.sacType":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择访问类型";
			}
		}
		,"srvApiClient.sacUrl":function(el){
			if(el.value.length>128 && el.value.indexOf("[*]")==-1)
				return "回调地址最大长度为128个字符";
		}
		,"srvApiClient.sacDesc":function(el){
			if(el.value.length>256 && el.value.indexOf("[*]")==-1)
				return "描述最大长度为256个字符";
		}
		,"srvApiClient.sacUpdateTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "修改时间不能为空";
			}
		}
		,"srvApiClient.sacAddTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "添加时间不能为空";
			}
		}
		,"srvApiClient.sacStatus":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择状态";
			}
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>

<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>


<form enctype="{{inports!=null?'multipart/form-data':''}}" lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'||edittype=='inport'}}" class="form editform edittype_{{edittype}}" ref="SrvApiClient" id="apiclientForm" name="apiclientForm" target="jsoniframe" action="apiclient.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt">
				温馨提示：请仔细填写API客户端相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
			
			<lz:block lz:if="{{inports}}">
			  <div class="line"></div>
			  <dl style="width:98%;">
			  	<dt>Excel文件:</dt>
			  	<dd>
			  		<input type="hidden" value="{{inports}}" name="inports" id="inports" />
			  		<input type="hidden" value="{{inport$}}" name="inport$" id="inport$" />
			  		<input name="file" name="file" type="file"/>
			  		<b>*</b>
			  		<div>
						请上传excel文件，表格列依次为：[{{inport$}}]，excel表格第一行为列名称，将不作为上传数据行
					</div>
			  	</dd>
			  </dl>
			  <div class="line"></div>
			</lz:block>
	{{lz.set("sacId_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"sacId"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"sacId"))))}}
	{{lz.set("sacId_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$sacId}}
	<dl lz:if="{{sacId_editable||sacId_readonly}}" class="sacId hidden " major  ref="sacId">
		<dt>编　　号:</dt>
		<dd lz:if="{{sacId_editable}}" input="hidden">
			<lz:block lz:if="{{srvApiClient$sacId}}">
				{{srvApiClient$sacId}}
			</lz:block>
			<lz:block lz:if="{{!srvApiClient$sacId}}">
			<input type="hidden" value="{{lz.htm(srvApiClient.sacId)}}" name="srvApiClient.sacId" id="sacId" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{sacId_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="sacId">{{srvApiClient.sacId}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvApiClient.sacId$||srvApiClient.sacId)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$sacId}}
	{{lz.set("sacClient_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"sacClient"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"sacClient"))))}}
	{{lz.set("sacClient_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$sacClient}}
	<dl lz:if="{{sacClient_editable||sacClient_readonly}}" class="sacClient  " major  ref="sacClient">
		<dt>客户端ID:</dt>
		<dd lz:if="{{sacClient_editable}}" input="text">
			<lz:block lz:if="{{srvApiClient$sacClient}}">
				{{srvApiClient$sacClient}}
			</lz:block>
			<lz:block lz:if="{{!srvApiClient$sacClient}}">
		 	<input type="text" class="input narrow"   name="srvApiClient.sacClient" id="sacClient"  value="{{lz.htm(srvApiClient.sacClient)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入API客户端的客户端ID</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{sacClient_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="sacClient">{{srvApiClient.sacClient}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvApiClient.sacClient$||srvApiClient.sacClient)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$sacClient}}
	{{lz.set("sacSecret_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"sacSecret"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"sacSecret"))))}}
	{{lz.set("sacSecret_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$sacSecret}}
	<dl lz:if="{{sacSecret_editable||sacSecret_readonly}}" class="sacSecret  " major  ref="sacSecret">
		<dt>客户密钥:</dt>
		<dd lz:if="{{sacSecret_editable}}" input="text">
			<lz:block lz:if="{{srvApiClient$sacSecret}}">
				{{srvApiClient$sacSecret}}
			</lz:block>
			<lz:block lz:if="{{!srvApiClient$sacSecret}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="srvApiClient.sacSecret" id="sacSecret"  value="{{lz.htm(srvApiClient.sacSecret)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入API客户端的客户密钥</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{sacSecret_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="sacSecret">{{srvApiClient.sacSecret}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvApiClient.sacSecret$||srvApiClient.sacSecret)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$sacSecret}}
	{{lz.set("sacType_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"sacType"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"sacType"))))}}
	{{lz.set("sacType_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$sacType}}
	<dl lz:if="{{sacType_editable||sacType_readonly}}" class="sacType  " major  ref="sacType">
		<dt>访问类型:</dt>
		<dd lz:if="{{sacType_editable}}" input="select">
			<lz:block lz:if="{{srvApiClient$sacType}}">
				{{srvApiClient$sacType}}
			</lz:block>
			<lz:block lz:if="{{!srvApiClient$sacType}}">
		 	<select class="narrow" id="sacType" name="srvApiClient.sacType">
		 		<option value="">请选择</option>
				<option value="0" selected='{{srvApiClient.sacType=="0"?"selected":""}}'>配置接口</option>
				<option value="1" selected='{{srvApiClient.sacType=="1"?"selected":""}}'>全量模型</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择API客户端的访问类型</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{sacType_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="sacType">{{srvApiClient.sacType}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvApiClient.sacType$||srvApiClient.sacType)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$sacType}}
	{{lz.set("sacUrl_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"sacUrl"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"sacUrl"))))}}
	{{lz.set("sacUrl_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$sacUrl}}
	<dl lz:if="{{sacUrl_editable||sacUrl_readonly}}" class="ribs sacUrl   mider" major  ref="sacUrl">
		<dt>回调地址:</dt>
		<dd lz:if="{{sacUrl_editable}}" input="text">
			<lz:block lz:if="{{srvApiClient$sacUrl}}">
				{{srvApiClient$sacUrl}}
			</lz:block>
			<lz:block lz:if="{{!srvApiClient$sacUrl}}">
		 	<input type="text" class="input mide"  maxlength="128" name="srvApiClient.sacUrl" id="sacUrl"  value="{{lz.htm(srvApiClient.sacUrl)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入API客户端的回调地址</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{sacUrl_readonly}}">
		 	<div class="state-input mide">
		 		<textarea class=""  style="display:none;" id="sacUrl">{{srvApiClient.sacUrl}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvApiClient.sacUrl$||srvApiClient.sacUrl)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$sacUrl}}
	{{lz.set("sacDesc_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"sacDesc"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"sacDesc"))))}}
	{{lz.set("sacDesc_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$sacDesc}}
	<dl lz:if="{{sacDesc_editable||sacDesc_readonly}}" class="ribs sacDesc   wider" major  ref="sacDesc">
		<dt>描　　述:</dt>
		<dd lz:if="{{sacDesc_editable}}" input="textarea">
			<lz:block lz:if="{{srvApiClient$sacDesc}}">
				{{srvApiClient$sacDesc}}
			</lz:block>
			<lz:block lz:if="{{!srvApiClient$sacDesc}}">
		 	<textarea class="input wide"  id="sacDesc" name="srvApiClient.sacDesc" rows="5">{{srvApiClient.sacDesc}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入API客户端的描述</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{sacDesc_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(srvApiClient.sacDesc$||srvApiClient.sacDesc)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$sacDesc}}
	{{lz.set("sacUpdateTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"sacUpdateTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"sacUpdateTime"))))}}
	{{lz.set("sacUpdateTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$sacUpdateTime}}
	<dl lz:if="{{sacUpdateTime_editable||sacUpdateTime_readonly}}" class="sacUpdateTime  " major  ref="sacUpdateTime">
		<dt>修改时间:</dt>
		<dd lz:if="{{sacUpdateTime_editable}}" input="datetime">
			<lz:block lz:if="{{srvApiClient$sacUpdateTime}}">
				{{srvApiClient$sacUpdateTime}}
			</lz:block>
			<lz:block lz:if="{{!srvApiClient$sacUpdateTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="srvApiClient.sacUpdateTime" id="sacUpdateTime"  value="{{srvApiClient.sacUpdateTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择API客户端的修改时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{sacUpdateTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="sacUpdateTime">{{srvApiClient.sacUpdateTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvApiClient.sacUpdateTime$||srvApiClient.sacUpdateTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$sacUpdateTime}}
	{{lz.set("sacAddTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"sacAddTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"sacAddTime"))))}}
	{{lz.set("sacAddTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$sacAddTime}}
	<dl lz:if="{{sacAddTime_editable||sacAddTime_readonly}}" class="sacAddTime  " major  ref="sacAddTime">
		<dt>添加时间:</dt>
		<dd lz:if="{{sacAddTime_editable}}" input="datetime">
			<lz:block lz:if="{{srvApiClient$sacAddTime}}">
				{{srvApiClient$sacAddTime}}
			</lz:block>
			<lz:block lz:if="{{!srvApiClient$sacAddTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="srvApiClient.sacAddTime" id="sacAddTime"  value="{{srvApiClient.sacAddTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择API客户端的添加时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{sacAddTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="sacAddTime">{{srvApiClient.sacAddTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvApiClient.sacAddTime$||srvApiClient.sacAddTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$sacAddTime}}
	{{lz.set("sacStatus_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"sacStatus"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"sacStatus"))))}}
	{{lz.set("sacStatus_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$sacStatus}}
	<dl lz:if="{{sacStatus_editable||sacStatus_readonly}}" class="sacStatus  " major  ref="sacStatus">
		<dt>状　　态:</dt>
		<dd lz:if="{{sacStatus_editable}}" input="select">
			<lz:block lz:if="{{srvApiClient$sacStatus}}">
				{{srvApiClient$sacStatus}}
			</lz:block>
			<lz:block lz:if="{{!srvApiClient$sacStatus}}">
		 	<select class="narrow" id="sacStatus" name="srvApiClient.sacStatus">
		 		<option value="">请选择</option>
				<option value="1" selected='{{srvApiClient.sacStatus=="1"?"selected":""}}'>正常</option>
				<option value="0" selected='{{srvApiClient.sacStatus=="0"?"selected":""}}'>无效</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择API客户端的状态</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{sacStatus_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="sacStatus">{{srvApiClient.sacStatus}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvApiClient.sacStatus$||srvApiClient.sacStatus)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$sacStatus}}
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{srvApiClient.sacId}}" name="srvApiClient.sacId" id="sacId" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'||edittype=='inport'}}">
				<button class="button" type="submit">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/api/apiclient.edit.html?edittype=update&id={{srvApiClient.id}}"'>
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					修改&nbsp;&nbsp;</button>
				<button lz:if="{{canDel}}" type="button" class="button" onclick="deleteApiclient('{{srvApiClient.id}}','{{srvApiClient.sacClient}}')">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					删除&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>

 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>
	
	$(function(){
		if(parent.setit){
			parent.setit("/admin/api/apiclient.edit.html",document.title,"/admin//images/icons/2008825642250778047.png");
		}
	});
	
	function cancel(){
		if(parent.closeHref){
			parent.closeHref("/admin/api/apiclient.edit.html");
		}else{
			$.closeModalDialog();
		}
	}


	/**
	* 删除API客户端
	**/
	function deleteApiclient(id,flag)
	{
		var dialog=top.$.dialog({
				html:"<span style='white-space:nowrap;'>确定要删除当前数据吗？</span>",
				title:"删除API客户端",
				modal: true,			
				onOk:function(){
					dialog.closeDialog();
					var url = "/admin/api/apiclient.delete.do";
					var params = {id:id};
					var protocol = $.getAjax(url,params);
					if(protocol.message){
						top.$.toast(protocol.message);
					}
					if(protocol.success){
						caller.location.href=caller.location.href;		
					}
				}
		 });	
	}
</script>
</html>